Component({
  properties: {},
  data: {},
  methods: {
    onBack: function() {
      wx.switchTab ({
        url: '/pages/index/index'
      })
    }
  }
})